#!/bin/bash

#实时处理 user_crm 表
sh /home/marvin/realtime_job/sql/select/user_crm_select.sh  |awk -F '\t' -f /home/marvin/realtime_job/awk/user_crm.awk >/home/marvin/realtime_job/sql/replace/user_crm_replace.sql
mysql -uroot  -proot </home/marvin/realtime_job/sql/replace/user_crm_replace.sql

mysql -uroot  -proot -e "replace into result.res_update(res_table) VALUES('user_crm')"
